<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="assets/layui/css/layui.css" />
<link rel="stylesheet" href="css/gobal.css" />

<script type="text/javascript">
	if (self != top) {
		top.location.href = '/login'
	}
</script>
</head>
<body>

	<div class="login_page">
		<div class="login_intro">智能巡查管理系统</div>

		<form class="layui-form" method="post" action="login">
			<div class="layui-form-item">
				<div class="layui-input-inline input-custom-width">
					<input type="text" name="username" lay-verify="required"
						placeholder="用户名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-inline input-custom-width">
					<input type="password" name="password" lay-verify="required"
						placeholder="密码" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-inline input-custom-width">
					<button class="layui-btn input-custom-width submit_btn" lay-submit
						lay-filter="formDemo">登录</button>
				</div>
			</div>
		</form>
	</div>


<script src="js/jquery-3.2.0.min.js"></script>
<script type="text/javascript" src="assets/layui/layui.js"></script>
<script type="text/javascript">
var errori ="${errorMsg}";
if(errori!=""){
    layui.use('layer', function () {
        var layer = layui.layer;
       layer.msg(errori, {time: 3000, icon:2,area: ['200px', '80px']})
    })
}
</script>

</body>
</html>